

<div class="main-content">
        <div class="breadcrumbs" id="breadcrumbs">
            <script type="text/javascript">
              try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
            </script>

          <ul class="breadcrumb">
            <li>
                <a href="{:U('admin/index/main')}">首页</a>
            </li>
            <li class="active">达康健身器材管理后台</li>
          </ul><!-- .breadcrumb -->
          </div>
    <div class="add_cp">
         <input type="button"  class="btn btn-primary xs" value="添加管理员">
    </div>
    <div class="table_con">
       <table >
            <tr class="tb_title">
                <td height="40">名字</td>
                <td height="40">权限</td>
                <td height="40">操作</td> 
            </tr>
            <volist name="data" id="vo"><form action="{:U('admin/index/updateAdmin')}" method="post">
            <tr>
                <td>{$vo.name}</td>
                 <input type="hidden" name="id" value="{$vo['id']}" >
                <td style="width:20%">
                    <select class="form-control" name="power"> 
                        <option value="0" {$vo['permission']} >超级管理员</option> 
                        <option value="1" {$vo['permission']} >管理员</option>
                    </select>
              </td >
              <td align="center" valign="middle"> <input type="submit" value="修改"  style="width:50px; height:38px; line-height:38px; margin-top:1px; margin-bottom:1px; background-color:#C4DEF4; color:#2a6496"><a style="float:left" href="{:U('admin/index/delAdmin',array('id'=>$vo['id']))}" >删除</a>
              </td>
               
            </tr>
           </form>
            </volist>
      </table>
         
    </div>
</div><!-- /.main-content -->
<script type="text/javascript">
    $('.add_cp').click(function() {
        window.location.href = "{:U('admin/index/addadmin')}";
    })
</script>









